Fixed PREWHERE Filter Error in ReplacingMergeTree

Fixed an error when reading from ReplacingMergeTree with a condition in PREWHERE that filters all rows (#2525).