Kelly, Prendergast do enough to stay ahead of DLS requirement in damp encounter at Trent Bridge