Fixes #2770 CClientScript::renderScriptBatch()

Fixes #2770 CClientScript::renderScriptBatch()