The bot also bugs out when there is enough nulgath's approvals but not enough archfiend's favors, skipping the whole section.
I propose a fix in the form
Label 1
is in inventory, A, 300
goto Label 3
Label 2
join map
...(getting the items)
is not in inventory, A, 300
goto Label 2
Label 3
is not in inventory, E, 300
goto Label 2