Add missing fail handler

This reinstates the fail handler for getProfile and getOrder. Even though our proxy always returns a 200, jQuery may trigger fail if it cannot parse the response.

Related to problem ticket #399775.

/cc @jwswj @s-vizzari @tmcinerney