compat: fix selecting the correct reader if the spec is None
compat: fix selecting the correct reader if the spec is None

Signed-off-by: Filipe Laíns <d780ea131edc6126ff48fa0382b66c02d54b57a5@riseup.net>

python/importlib_resources