Added small fix for chrome bug.

As commented in http://trac.roundcube.net/ticket/1489005