GATT: Handle NoSuchElementException for mBatchClients in ScanManager.

Issue:
FATAL Exception in Bluetooth process.

Root Cause:
When ACTION_REFRESH_BATCHED_SCAN is received, current code has check
to ensure that mBatchClients hasNext() element. Despite that,
in reported instance, other thread has removed the next() element
or has cleared the HashMap which resulted in NoSuchElementException.

Fix:
Catch NoSuchElementException for broadcast ACTION_REFRESH_BATCHED_SCAN.

CRs-Fixed: 2445877
Change-Id: Ia4ca7d6ea5a12f582c8e77925ae5da227f841dc6
1 file changed