code cleanup
code cleanup
CRM-12638, fatal error fixes due to 66ceb5d9

----------------------------------------
* CRM-12638: Optimize Prev/Next Cache and search interaction
  http://issues.civicrm.org/jira/browse/CRM-12638
Merge pull request #1552 from kurund/CRM-12638

CRM-12638, prev/next optimization issues