Fix for crash in system_server due to IndexOutOfBoundsException

This became necessary since now we cancel compactions so it is possible
to have a list without elements when the compaction system is ready to
start a compaction.

Bug: 219901263
Test: Manual
Change-Id: I44d95d243ba95aea6c84283ddef1a38ffb6d3570
1 file changed