Fix fatal error on default errors without exceptions
Merge pull request #23 from pskt/fix-404

Fix fatal error on default errors without exceptions, logging was done in the wrong place, corrected.