Fake xhr for icons - error handling fix