Fixes #5039: `UniqueValidator` and `ExistValidator` did not respect query conditions added by default scope