inline implementation of Symbol.isTopLevelModule, which no longer exists in 2.11
Drop unneeded import that triggers SI-7690.