Fix copy from a "created" container. Fixes #14420 Upstream-commit: f5ebcfe1dcc1974425155ae9d85a750573af9625 Component: engine