fix fatal error when removing logical volumes
Merge pull request #3590 from fgtham/lvol_fix

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