#3531 environment count is on endpointsMap.size
Merge pull request #3541 from dotCMS/issue-3531-push-weird-error

#3531 environment count is on endpointsMap.size