Rory McIlroy was involved in a bunker drama during the second round of The Northern Trust but ultimately avoided a penalty.