Fix for device recognition when trying to read details of an out-of-bounds device, or an unrecognized device