Followup a86d824: fix reference to this in foreach callback

Bug: 73235
Change-Id: Ib8f877f747df6c8047c7e3d2c152e0e7a9f60b8a