ZEN-14580 Save browser state only if state has changed

ZEN-14580 Save browser state only if state has changed