Handle invalid pagination offsets gracefully