Fix NPE if database has no configuration for a device.
Merge pull request #1006 from cdjackson/zwave-cfg-npe

Fix NPE if database has no configuration for a device.