Rory McIlroy admitted he was suffering with a stomach bug as he failed to build a commanding lead at the halfway stage of the Dubai Desert Classic.