Fixed segmentation fault bug

Bug fix for segmentation fault occuring when using TTrbAnalysisBase in
an analysis macro; This was discovered by Christoph;