Prevent Circular lookup on frontend

https://github.com/symphonycms/selectbox_link_field/issues/38

When an entry is linked to itself in same section using SBL a circular lookup happens on the frontend and page errors.

Is the submitted code correctly referencing the array value to unset correctly? not 100% sure if this is correct, but could someone take a look at it?