Applied patch in https://sft.its.cern.ch/jira/browse/ROOT-6294  Not really tested because we have no test associated to this plugin.