Correct Error Handling to avoid panics and add more logging to template
Correct Error Handling to avoid panics and add more logging to template

When a type error is found we return an empty object of the expected
type(Example: return "" for string return type). Also makes adds logging
to all errors caused by type and corrects all related logging for consistency.

kubernetes/ingress-nginx,aledbf/ingress-nginx,jcmoraisjr/ingress,kubernetes/ingress-nginx,kubernetes/ingress-nginx,canhnt/ingress,caicloud/ingress,aledbf/ingress-nginx,caicloud/ingress,aledbf/ingress-nginx,jcmoraisjr/ingress,kubernetes/ingress-nginx,canhnt/ingress,nicksardo/ingress,danielqsj/ingress,caicloud/ingress,kubernetes/ingress-nginx,kubernetes/ingress-gce,danielqsj/ingress,jcmoraisjr/ingress,chentao1596/ingress,nicksardo/ingress,canhnt/ingress,caicloud/ingress,kubernetes/ingress-gce,chentao1596/ingress,nicksardo/ingress,aledbf/ingress-nginx,nicksardo/ingress,canhnt/ingress