Fix couchdblookup on puppet3

http://docs.puppetlabs.com/guides/custom_functions.html

```
lookupvar returns:

nil (in Puppet 3.x)
:undefined (in Puppet 2.7)
```