A 19th century pub in Charlton that was formerly used as a cannabis factory has had plans to convert it into a Tesco and a set of flats rejected.