wp core download: error if the requested locale is not found

fixes #1117