fixes #31: chart crash with no history