ajax: Fix #14207. file protocol returns status 0, see #8605.