handle additional undefined cases

handle undefined on `{{var}}` and `{{!var}}` (returns an empty string)