Fix group hooks not firing in PostReceive
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31741 changed the behavior to fire hooks only if project or system hooks needed to be fired. We also need to consider group hooks as well.
Edited by Stan Hu