Fix ApiCreateAccountTest for $wgEnableEmail = false;

1) ApiCreateAccountTest::testInvalidEmail
Failed asserting that exception of type "UsageException" is thrown.

Also explicit log out the user

Change-Id: I1d90c2b78bbcef494dc91822feeba37eebb8ca20
Merge "Fix ApiCreateAccountTest for $wgEnableEmail = false;"