When autodetecting, don't segfault if no item was previously selected and a device...