Update example to be defensive in case people have the form in a footer and try to load something like a 404 page.