[z1937] Fix possible crash when trying to add playerto group who is not in world

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
Signed-off-by: Nighoo <nighoo@gmail.com>

(cleaned version of a74982e)

(based on commit [s1524] - 172832b)