Treat undefined column value as NULL in template.validate()