Fix: 'NoneType' object has no attribute 'isinstance'
Merge pull request #234 from tkf/None.isinstance

Fix: 'NoneType' object has no attribute 'isinstance'