Fix issue related to returnValue in BeforeUnloadEvent

Fixes https://github.com/Polymer/polymer/issues/445