Fixes an issue where merging an emtpy result set could cause a crash.

Renames a method for consistency.
Reorganizes some code to remove an unnecessary method.
Sets the has more posts flag to false if no resuls are returned.

Fixes #1795