[encryption] fix redirectToErrorPage() call

we need the session as parameter for the error handler