Fix where
on polymorphic association with empty array
#41063
Merged
where
on polymorphic association with empty array
#41063