Only call the search function if there is something to search for
...but still display the search field if not!

And no need to call_user_func because the name of the function isn't
dynamic!
Fix for an issue where pagination was broken in instances where
the search has added a `GROUP BY` clause.