npm: metadata -> revision: Deal with previous metadata format
Current revision stored from the previous npm loader runs have their metadata stored with an old format.
This patches the current npm loader to deal with it.
Test Plan
tox
Migrated from D2365 (view on Phabricator)