Ensure that queryEmail always returns an array.

Before it would return an array under some situations and a string under others.