[WebAssembly] Use the checked form of MachineFunction::getSubtarget. NFC.