Prevent user to use and invalid setting index Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>