Bugfix - NullPointer when trying to export log and target is not set