Fixed crasher in mod_scripting plugin due to recent reorg.

Leo build: 20140912075617