Changed the `onModuleReady()` so that it doesn't call the callback if any of the specified module names is `null`.