Fix wrong error handling in update page service Closes #44817 See merge request gitlab-org/gitlab-ce!18098