Claudio Ranieri’s much-changed team were taken the distance by a weakened Derby County side but eventually found a way through to the fifth round