temporary fix to https://github.com/globaleaks/GlobaLeaks/issues/567

ready to be merged if the fix is accepted.

more infos on the proposed solution are on the first message of the ticket https://github.com/globaleaks/GlobaLeaks/issues/567