Constraints on the ultrahigh-energy photon flux using inclined showers from the Haverah Park array