Corrected an exception message stating that only BaseElement types were accepted as children.