fixed ks initialization when ks is not generated by php or passed with flashvars
Merge branch 'fix-ks-initialization' into Yair