issue #2790: Fix for TMXObjectGroup::getObject.