Hi Sam,
I'm simply letting you know how to overcome the error. Of course I wouldn't suggest modifying standard code - that would be asking for trouble. I don't see anything wrong with the program logic, but as I understand it, you'd like to remove just one wrongly-created FDA Code. So my assumption is that you will get someone with suitable authorisation to inhibit the error as you do so.
Regards,
Dave