Fix paging results in Advanced Search.

Change-Id: Ideffafe3fb83667154d8f16cd2e11c360cd61fcb