Smtg_add_plugin_resource inconsistent between platforms

I just ran into this as well.

What file did you quote in your extract there, and is there a fix I can do locally to address the inconsistency?