In fiction, things often go against the grain. It's an escape from the real world. Mary is not a real nun or real person. You can even treat her as if she's just pretending to be a nun if you'd like. Whatever she does or doesn't do is meaningless as it is all made up.