bugfix: to check that lat/lon values are not NONEs