Fix bug wrt. nonce generation in IdP.