Fixed chart update for cases when chart has no initial data.