Fixed NPE with pbed_location() when bed is missing or obstructed