Fixed opening of the file dialog twice on newer Google Chrome versions.