Fix bug 1637: Give warning when removing unexisting chart