fixed issue https://github.com/globaleaks/GlobaLeaks/issues/436

@vecna: here is a patch to https://github.com/globaleaks/GlobaLeaks/issues/436

can you review it for merge in devel branch?