git_commit_create: allow NULL parameter for update_ref

Minor fix needed for a test project.
I'm all but a c/php core programmer, feel free to reject.