Fix parsing of empty git commits, fixes #3565