[ticket/11700] Correctly load templates for extensions

PHPBB3-11700