Fixup #3263: Prevent loop collection in endAllImplicitCalls

Thanks @shesek