Issue #2988617 by samuel.mortenson, bkosborne, alexpott, phenaproxima, marcoscano, amateescu, chr.fritsch: Creating media with the media library upload is broken for unlimited cardinality (cherry picked from commit 057b54e0)