Try a more compatible approach for 404 page

Firefox does not support innerText.