Support for content only MathML tags

Also fixes:
* visibility of constructor
* error handling for invalid input
  (returns null now)

Change-Id: I95256301d5c456915fd0f8e6b8b3ac49f4112288