bug fix: text elements which are nil are no longer treated like a string