I think you're right. Also, he touched "her" because of the d-mail, and he didn't know or intended to molest her. He was confused because he thought she was a man. And wanted to understand if the d-mail worked.