add check for nil gps coords to pass in error message