The only real way you could accomplish this that I can think of would be to wait for the script to load, and then overwrite the problematic function with an identical copy except the body of the function is wrapped in a try catch. If the function uses closures, you'd have to replace the functions parent, and if the parent has closures, you'd have to replace the parent of that too, etc (potentially all the way up to the whole file). It could be a major PITA because there might be event handlers you'd have to deal with, but it should be doable. That assumes your code could run before the error occurs, though, which may not be possible.
Another option would be to find the error reporting mechanism and see if you can modify it to remove the activity feed errors, which would effectively silence the reporting (assuming that is your end goal).