add if statement if location not found
Fix jiro
Merge pull request #79 from esodov/fix_location_err

add if statement if location not found