Only overwrite local changes if current state == proxy

If the current state == proxy, it makes sense to overwrite all data with
the recently fetched values. However, when we are in a other state we
probably fetched a whole record before and maybe did some local
modifications that we don't want to lose.