When search result is less than 5 (no of items per page) the application throws error.