Add missing bit to fix for GAUDI-1055
The fix introduced with !12 (merged) missed a corner case which causes random failures in some LHCb builds.
Please be advised that registry.cern.ch registry (Registry Service) will be unavailable next Monday, March 10th starting at 08:00h (Geneva time) for a short period of time. This may cause temporary disruptions to your workflows. Further information: OTG0154905
The fix introduced with !12 (merged) missed a corner case which causes random failures in some LHCb builds.