Ensure slot index is in bounds in BlockSelectScreen