Fixed problem with couple of decorator that destroy function they decorate

Fix for similar problem as in https://github.com/miguelgrinberg/Flask-HTTPAuth/pull/4