Fix ROOT-6322: avoid adding empty autoload keys to the rootmaps

The fix is trivial: check that the requested name is not empty.
Indeed an empty requested name is a "" and not a nullptr.