PrettyFormatter: do not crash when the location is not available