Fix XHR failure for file: protocol.

If load html from local file system, `xhr.status` is not 200/404 but 0, so the page fragments can't be renderred.

Well, actually my first name is Yao (it happen to be the last in the list), and family name is Duan, and I place the family name first because I'm Chinese.