FIX: ensures chart parent element is still present before render (PR #8145)

GitHub

You’ve signed the CLA, jjaffeux. Thank you! This pull request is ready for review.