Handle empty data object passed to template