Fix for  Issue #3586:  UnboundedLocalError when removing a logical volume.

This fixes the UnboundedLocalError when removing a logical volume.