handle empty commit message