bug fix: Text elements which are nil will now return an empty string