Fixing rack-environmental to ignore XHR requests

This fixes [#54515498].

https://www.pivotaltracker.com/story/show/54515498