FIXES #172

Extremely strange behaviour. I wasn’t able to track down the reason.
Added a check if filters are not null, which fixes it