Fixed potential logger crash
Merge pull request #80 from korczis/master

Fixed potential logger crash