Fixing CEP-922

WindowProcessor's restoreState() is called twice by passing two different parameters