Fix a potential wild pointer error when markSlotSuccessful comes late am: 65e8b6c195 am: f22fa83e8e

Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1663460

Change-Id: I3f166238a920086316de1b5ab4eac7775ba87b41