Describe the bug
Paginator fails when itemsPerPage is 0 and showGoToPage is true, since it is making this operation totalItems / itemsPerPage. The result of this operation (totalItems / 0) is Infinity. So when it is trying to make Array(Infinity) it fails.
Expected behaviour
It should not fail and it should be shown like this:

Screenshots
