[HookConfiguration] Make 'head_commits' nullable

It seems a "delete branch" trigger an null `head_commits`. This PR solves this issue...