fix check if mapOnlyForSpecificGroup is set
Hi, it seems like there was a small bug in the script when checking for any "mapOnlyForSpecificGroup".
I moved the .mapOnlyForSpecificGroup to the where object as it was done a few lines further down, and it seems like that fixed the problem.