TTN - changed databag retrieval code to expect null as well as undefined from .getValue() if a key has not been set