Fix a crash in analyticalIntegral when rangeName is null. This fixes the segfault reported in ROOT-6031