Margaret Gillies’s portrait of Dickens was missing for more than 150 years, until it turned up far from home. Lucinda Hawksley tells the story of this long-forgotten artist.