Only normalize ids when getting the module descriptor

To prevent ".js" extension being removed and then not being added back
if the module has "." in the name.