Fix error identifying if a page is being edited