CRM-11331 action links on page 2 not working

This might be best NOT in 4.2.10 as it brings forward a required change to custom custom searches (changing a function signature.) 

 However this can be an important patch in other circumstances as the patch fixes a problem where search results are only selectable on page one of search results.