[ticket/11768] Moved code block outside of unrelated try/catch

The try/catch block only exists to prevent a malformed BBCode from
preventing the generation of a parser.

PHPBB3-11768
[ticket/11768] Removed unused code

PHPBB3-11768