[Fix Bug 1022635] Improve error handling on mapbox api calls