Fix approval rules for a project with no protected branches
What does this MR do and why?
When there are no protected branches, an approval rule that applies to all protected branches shouldn't be applied to all branches
Related issue: Merge request approval rule for protected branc... (#399198 - closed)