Rory McIlroy ultimately left himself with too much to do as he finished one shot off the top following a controversial close to the Korea Open.