Synthetic modules do not have any dependencies, so calling `GetRequestedModulesCount` results in cash. This patch fixes this by making `ResolveRequestedModules` return early for synthetic modules. Differential Revision: https://phabricator.services.mozilla.com/D218561