Fix for file protocol returning status code 0 (see #141)

This fixes the issue with file protocol returning status code 0 for XHR requests. Tested and works in a Phonegap app (which was the original issue reported).