Fix exception when last location isn't accessible