[ANALYZER-2635] -- Added condition for when the category is not a root a...

...nd when the basecolor is null