Don't commit submodule change if there is none.

Alternately we could pass `--empty` to `git commit`, but this will
leave less garbage in history.
Merge pull request #2 from pipelang/phs/avoid-empty-commits

Don't commit submodule change if there is none.