Fixed a bug where map and imap would return nothing upon non 200 responses and exceptions