Avoid unnecessary, potentially invalid downcasts from SdrObject to SdrObjGroup

Change-Id: If00b4a11ce5e568b9e4ff00038dc9e1f068cfd79