ZEN-14581 Save browser state only if state has changed

ZEN-14581 Save browser state only if state has changed