Prevent to create duplicate bindings on invoices

The correction made at becc1bf2 was not working because it was
doing a 'continue' on the inner loop but not on the outer loop.