Throw illegal argument exception when slot index is invalid

Test: Manual
Bug: 144097779
Merged-In: I5c5c4eb313fd42317a2b0feed0946b8e4003ad62
Change-Id: I5c5c4eb313fd42317a2b0feed0946b8e4003ad62
(cherry picked from commit 0d75aee571eb6a7048a618af894c41a24e8e5cbd)
1 file changed