This gives me a chance to say I've searched innumerable newspaper databases over the past two years and found no earlier reference to the song. The 1870s or '80s seem to me to be the most likely time of origin.