check for undefined variables with `nil?` instead of `== :undef` in temp...

...lates

It appears that at some point puppet started using `nil` inplace of `:undef` in
undefined variables.