google_battery: fix invalid-access in GBMS_CCCM_LIMITS

temp_idx and vbatt_idx are -1 when battery is disconnected. And
this situation results in invalid access to the CCCM table. Move
to a reasonable position to check cc_max

Bug: 228802503
Signed-off-by: Jenny Ho <[email protected]>
Change-Id: I9d41714d91e5ccb25abe66c4fc1920be0d2851d4
1 file changed