fixed the check for an existing UID when renaming a page