Add onError callback when request to api.longurl.org fails
Merge branch 'issue-3829'