Fixed bug where chart would be left showing if the stock was removed from the portfolio