protect against empty template value