Fixed a bug where no log was created if no log folder was set