rename: Fix crash when renaming a page that is linked to by a page in an underlay.