Fix issue #663 where endless loop occurs when trying to save page with pagefield pointing at itself