Rory McIlroy made a triple-bogey six on the par-3 17th hole during the second round of the HSBC Abu Dhabi Championship.