check device not none
Merge pull request #524 from zenoss/feature/ZEN-15039

check device not none