Merge pull request #2 from ardadouk/master

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