Handling NPE in case of missing location info.