detect: Don't fail while detecting megacli enclosure

The current code was failing as the device enclose doesn't have any
PdType like in :

{'ExitCode': '0x00', 'Adapter0': 'Device at Enclosure - 32, Slot - 14 is
not found'}