Fix a case for custom RequireJS loader which has exports in scope but not module