Update tweetmapper.js

error handling enhancements