Fix state_filter attribute validation for Depdency objects.

Fixes #6110
Fix exception for Notification objects without checkable object.

Fixes #6111