If you won't always have data populated for an attribute you are using as a variable, you can avoid problems by using defaults. Simple add "| default('xxx')" to the variable entry. For example:

Hi {{ recipient.firstName | default('there') }},

Did this answer your question?