Fix "close chart" button with the correct icon

Closes #1758