Fix detach call when volume has no attachments.