Quark masses in Higgs production with a jet veto