Add a protection to avoid the crash mentionned here: https://sft.its.cern.ch/jira/browse/ROOT-6675