[5.0] Fix isEmpty bug with paginator

`$paginated->isEmpty()` returns `false` regardless of its emptiness.

Line 352 was changed for consistency.