Fix error when geocoder returns 0 results (fixes #817)