Fix "protected branches only" checkbox not set properly at init Closes #53515 See merge request gitlab-org/gitlab-ce!23409