Fix problem for committing a branch with no changes.