Bug 1022081: SPS: Reset the pushedScript after generation of OOL code, r=djvj