Handle StorageManager#getStorageVolume exception

There are cases where StorageManager has unmounted sdcard
but MediaProvider tries to access its properties, resulting in
an IllegalStateException

To fix this, catch the IllegalStateException and throw a
FileNotFoundException instead. IOException is already handled by other
parts of MediaProvider.

Test: Manual
Bug: 160207651
Change-Id: I2ddb3eba1e9399178090ebf84901af1ae60fa5e3
1 file changed