PIM-3014 Prevent copying media without associated file

| Q                    | A
| -------------------- | ---
| Bug fix?             | yes
| New feature?         | no
| BC breaks?           | no
| CI currently passes? | yes
| Tests pass?          | yes
| Scenarios pass?      | yes
| Checkstyle issues?*  | no
| PMD issues?**        | no
| Changelog updated?   | no
| Fixed tickets        |
| Doc PR               |