Analyze scripts, small null pointer fix in code cache