Fix a crash when the offset was higher than the number of results.