I'd suggest to remove the offending line, especially if you have no clue of what it was used for, or why it was there.
If you know what that line was used for (and why it was important in the first place) you could dig through the code and find out an alternative way to accomplish the same.
My best guess is that you're just trying to execute an old script on a new version, and you don't want / are not able to find an updated script.
Just remember that blindly executing a script without understanding it is exactly as typing to use a magic artefact: you have no clue why or how it works, and you're simply doing "something" hoping to get a result that is pleasant for you. This might payout in some cases, but it won't advance your knowledge, or your experience. And the results will be useless, because without understanding how you did it, they could be as well purely random.
Hence... don't take the short path - find out why the attribute isn't anymore there, and how that value is set now. It took me 5 minutes to find out a 95% right explanation, so it won't take more than 1h to you. And no, I won't tell you because that will make you lazy.