Fix rare crash when location is null