Fix for issue in puppet 3 with has_variable

This fixes the issue with the has_variable returning true with undef.  Basically the same fix as pull request #38 on the upstream module.