[ticket/10411] Throw exceptions instead of using trigger_error()

PHPBB3-10411
[ticket/10411] Catch exceptions from grouppositions

PHPBB3-10411
[ticket/10411] Test for thrown exceptions when group does not exist

PHPBB3-10411