[ticket/12681] Fix the creation of the url matcher

PHPBB3-12681