Interference effects in dilepton resonance searches for Z′ bosons and dark matter mediators