Added better error reporting and bug for <bound> tags being left in the dom for text tags