Replace blank script lines with script. in templates.