[automerger] Fix crash caused by removing update listener in update listener. am: 012d39a0e9

Change-Id: I8f88ca66ee8d7ffed2de2864130331d5a0d9f6c8