Changed getNearbyDoor to use MWWorld::Ptr