Still does not make much sense that commenting out that line is correcting the issue. Does the field contain some type of JavaScript? Shortcodes? Something that would be called when formatting the value that is also causing a script to be registered?