Fix "'XenServer' object has no attribute 'device'".

Fixes ZEN-12978.