Make sure we have a fallback when XMLHttpRequest is manually disabled. Fixes #6298.