Attempting to make sure the `getObjectsOfClass` methods don't result in a crash