Fix "could not be instantiated" exception when; some modules are omitted AND android.enableR8.fullMode is enabled. (#2136)
Reverts a breaking change from release 5.1.16 (do not use) that causes a crash when calling requestPermission in a separate thread right after initWithContext. (#2141)