Zwave config NPE checks

Adds checks to avoid null pointer exception.