Implemented Polymer/platform-dev#32 to fix Firefox problem