do not fall back to package name if a index was not used when selecting a provider, remember a name can be an integer

Signed-off-by: Mattias Andrée <maandree@operamail.com>