EZP-20812: fix offsetting to the non-existing results crasing the app
Merge pull request #349 from ezsystems/fix-EZP-20812-offset-exception

EZP-20812: Search with offset can ends up in an exception if there is no result