Check for public key before checking for signatures am: f624e1167d

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

Change-Id: I6788e108910ba2cae688435d89d691d4ce31adc1