Fix NPE when getting bed spawn location.