Fix cancel link focusing for nonexistent pages