handle errors when processing bbcode

Output like this: https://www.dropbox.com/s/8bvhz0fxv5mf7zn/Screenshot%202014-02-27%2001.01.26.png