[ticket/11437] add an extra condition to if statement

When search returns no results there is no need to go inside the if
statement. Since $result_count becomes zero, $start becomes negative
which leads to failed assertion.
http://tracker.phpbb.com/browse/PHPBB3-11437

Todo: Functional tests for this incorrect behavior

PHPBB3-11437