Propagate undef/false checks to other templates

Signed-off-by: Ray Lehtiniemi <rayl@mail.com>