DITA OT Issue 1593 - Better check that variable indeed has empty content.

See:
https://github.com/dita-ot/dita-ot/issues/1593