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

I'm not sure about all the consequences, so please review it.
With this fix I can finally use a _very_ simple filter chain on a model.
See issue (pull request) #218.