fixes #3915 - better handling of 404 exceptions
Merge pull request #68 from tstrachota/3915_not_found

fixes #3915 - better handling of 404 exceptions