Fix bad checks for empty values in templates

These were introduced during the process of fixing all the jshint errors. The !== was too specific and didn't account for undefined.

Signed-off-by: Don Naegely <naegelyd@gmail.com>