Add a protection to fix the problem described here: https://sft.its.cern.ch/jira/browse/ROOT-5429