allow using errorhandler from the app namespace

fixes #3431