Don't throw IllegalStateException when scan ends with pending items.

This can happen when the scan is cancelled.

Bug: 172985024
Test: atest CtsScopedStorageHostTest
Change-Id: I637e08dd982a44ac41618897591bc445f1bebb01
1 file changed