Fixing chaining filter problem -> check to avoid NoneType comparison.
Merge pull request #234 from tonjo/master

Fixing chaining filter problem -> check to avoid NoneType bitwise and operation