[feature/auth-refactor] A possible fix for the functional test failures

I don't like this fix as it really shouldn't be needed. But it
makes the functional tests pass.

PHPBB3-9734