skip legend rendering for empty class name/title