Make parseElementText handle empty string elements

ie. elements which only content is the empty string, for example
<body></body>.

Fixes SMACK-598