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