Avoid NULL pointer dereference when examining a device with no units.  #95