fixed getChildren() to avoid failure due to SRM_TOO_MANY_RESULTS status
(get the maximum number of entries and retrieves that number of results
instead of all)