Fixes #885: removed NULLs from filtering by models.