Don't crash from a NULL device.