correct restoring id_token from request state and its error log

closes #11