[feature/oauth] Fix bug found in testing

PHPBB3-11673