Fix localstorage issue with editor + confirm for change on /document/:slug

Signed-off-by: Thibaud Arnault <thyb@oauth.io>