Fixes #4361: Fix Directive popup on Chrome

retarget https://github.com/Normation/rudder/pull/420