[PATCH 2/2] reset: fix reset_get_by_index_nodev index handling