Rory McIlroy said his nightmare start to the Open Championship settled him down because he thought things couldn't get any worse.