Fix detecting SIP loops
This was a regression that got in when I updated to API changes in engine startup.