Fixed pagination in searches. Issue Tracker #31412.

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31412