[OE-3253] don't crash if the module api is invoked for an unmigrated module.