[PATCH 5.17 217/298] extcon: Fix extcon_get_extcon_dev() error handling