Fix #193 - Fix crash when no logging layer was set and logging was still enabled