Bug when using Import Specific Files

Test: 
display Packages manager
Edit a core package for a language (not master).
Click on Import Specific Files
(you will have beforehand created somewhere a file called xx-XX.css)
Browse to pick this file and Import.

We get an error as $name is not found, therefore the xml can't be read.
Patch and test again. This time we are using the $id.