Fixed bug where a br tag would cause an exception to be raised