Fix assert in setFilterError.
Merge pull request #129 from captainadamo/master

Fix assert in setFilterError.