Patch to handle incorrect user label in forms/fields

I have found the if a user makes changes to the label that is inserted into the lookup field, after the lookup has worked successfully, then an uncaught error occurs.  This patch catches that error, which means the form is redisplayed and the user can correct the error.