Corrected App.run check when the module to run is a valid one