fix issue adding undefined title when no graph title