[5.0] Fix isEmpty bug with paginator

If you do `$paginated->isEmpty()` you'll get `false` regardless of its emptiness.

Line 352 was changed for consistency.