fixed special case code that handles removing the last attached device from a vz container