Fixed getObject() not being safe to use in a bukkitless environment