Fixed nullcheck if related page was removed.