Fix bugs that can cause a segfault if a blank check-in comment
is entered.