Fix for Issue 119.

Make sure error blocks with custom Exceptions are handled when namespace is declared as '/foo/:id'. fixes #119.