Performance tweak for bbcode rendering.

Avoid calling XenForo_Application::get in a loop
Merge pull request #5 from Xon/patch-1

Performance tweak for bbcode rendering.