Do you still see the model in the viewer? Does anything unexpected happen except the console error?
It would be great if you could give me more information about the problem with a model link and a minimal version of the definition causing this so we can reproduce it.