Add check the command class isn't null
Merge pull request #1710 from cdjackson/zwave-refresh_bug

Add check the command class isn't null
Merge branch 'master' into zwave-initialisation

* master:
  Add check the command class isn't null