I checked the various calls to the method, but I'm still at a loss, I don't seem to be able to justify the error.

Can you please open the console on your application and run:

do you get the stack trace in this case?

Did you see the error on firefox? Maybe the stacktrace does appear there.