Fixed some issues with br and p tags when upcasting widgets.