Fix bug in disconnect loop

Check if bindings[i] still exists on each step.

Change-Id: Id6702d382b6b4a45b783f4e2fa8d8099e28d43da