Handle commits with empty lines in the message

This pull request addresses the same issue with #83.
All tests passed.