It took extra-time but a blast from Wilfred Ndidi and an insurance goal from Demarai Gray sent the Foxes to the FA Cup fifth round over Derby County.