Prevent loop collection in endAllImplicitCalls
Merge pull request #3276 from xixixao/issue1495fixup

Fixup #3263: Prevent loop collection in endAllImplicitCalls