Do not crash in cache viewer if returned device is NULL