Summarize empty messages

When a commit message is empty or consists only of whitespace, the summary should be the empty string.  `git_buf_detach`ing an empty buffer returns NULL.  Duh.