If module is defined as null before jQuery, an error is thrown. Fixes #13789