Fix checking for invalid depth requirements
Fix checking for invalid depth requirements

PVS: It's possible that the 'device_tmp' should be checked here.

fwupd/fwupd,fwupd/fwupd,fwupd/fwupd,fwupd/fwupd