Added a check in case there are no leases in the component that is going to be released