Fix EZP-20605: Redirected to the autosave action when publishing a content

JIRA issue: https://jira.ez.no/browse/EZP-20605

Description
===========
If ezautosave is activated and an auto submit has been triggered to save the draft, clicking on any button that submits the form redirects you the autosave action or open a tab to it... This is due to this YUI3 issue http://yuilibrary.com/projects/yui3/ticket/2532899 (or http://yuilibrary.com/projects/yui3/ticket/2533186).

This patch adds a workaround to this YUI issue that makes sure the form is correctly restored.

Tests
=====
Manual tests in IE8, IE9, Firefox and Chrome