BS-6798, Fixed pagination problem (20 by default)
Fixed possible NPE if getUsersByIds with null list of IDs