Fixes infinite recursion issue when re-using  XmlHttpRequest objects.  Only happens when Angular is included in the project.