CClientScript, "extends" issue

We can’t extend CClientScript while $_hasScripts is private (no sense). Please make it protected, or add a setter.