getGroups(): fix overall max search limit for paged searches