Fix deletion of not yet borrowed materials
Merge pull request #459 from jidel/issue#455

Fix deletion of not yet borrowed materials