Fix non-persisted polymorphic associations #15028