Fix pagination '1 of 0' if user has no environments