Fixed problem in merge.

Fixes the issue where a result-end is erroneously inserted at the end of the cache when there is a time gap between the back-dn and the getTexts query results.