Fix try/catch pattern match when decoding modfuns.