Fix log parsing error when commit have no comment