Fixed the variable checking in this template to avoid warning messages

as per: http://docs.puppetlabs.com/guides/templating.html `Testing for Undefined Variables`

thanks