Exclude validation pages as edit pages, fixes issue #1

To avoid throwing an exception in the Error Console, this just refines
the URL detection so that validation pages are not mistaken for edit
pages.