Fixed issue#254

Fix for issue#254. Now search returns a "good" error message when accessing an out of bound page through the api.