Fix for 'NoneType' object

TypeError: 'NoneType' object is not iterable
Merge pull request #19 from adi-/master

Fix for 'NoneType' object