fixed statsc when module is undefined but require is
Merge CDB-1763 into release/2.9.3