Better check that variable indeed has empty content...

See #1593