[ticket/11334] Make $phpbb_dispatcher global, as done in append_sid test

PHPBB3-11334