Fixes 5370: Uses correct container when adding files through embed.

Fixes #5370