Fix a slight oversight in the trusted email logic in openidauth.py and add tests for it.