Consider undef <value> as empty string

This way, we remove the (placeholders) template values.

No tests break with this patch