Fix for  Issue #3586

This fixes the UnboundedLocalError when removing a logical volume.