[ticket/11492] Add functional test for empty teampage

PHPBB3-11492
[ticket/11492] Add tests for removing/adding users

PHPBB3-11492
[ticket/11492] Do not add the user again

PHPBB3-11492
[ticket/11492] Split into mutliple tests

PHPBB3-11492
[ticket/11492] Fix issues with log object

PHPBB3-11492
[ticket/11492] Fix the test once more

PHPBB3-11492
[ticket/11492] Initialize $user_ids and $group_users arrays

Also avoid unneccessary calls to permissions when user_ids is empty

PHPBB3-11492
Merge pull request #1336 from nickvergessen/ticket/11492

[ticket/11492] Fix error on teampage when there are no users.