Fixed a bug when editing loans

If an equipment was not available because already in the currently
edited loan, saving was refused.