I have a simple page where I display some data that are fetched from the server.
Template:
Order\'s customer name: {{ order.customer.name }}<
I think you can test for order.customer :
order.customer
{{ order.customer && order.customer.name }}
if order.customer is not defined, the expression evaluation will simply stop at the first term without throwing an error.