The Scripting app resource throws null pointer exception is main script isn't found.