[automerger] Add limits check for the CTB position in a frame am: 5a3dafc324 am: 1b95d7fa97 am: 0a5e519fc7 am: 10a9188110 am: 9d02c4ce08

Change-Id: I3cd06c961d8df7555aa1fb87c34c9a9383a58cc1