test-imagex: Fix check of boot index