Better xhr error handling

If an exception is raised trying to parse the responseText of a failed
XHR, it is now caught and an appropriate notification is displayed.