bugfixes for empty comments and empty logs

Community Data Science Collective || Want to submit a patch?