[automerger] GAP: Handle illegal profile state exception am: af32d5bb77

Change-Id: Ie79fade5a394066791b18b5cf53f66c64be34306