I would imagine that "Polly" coming from "Molly" is the same as "Ted" being a nickname for "Edward". At a time when so many people were called Edward and thus Ed, eventually some became Ted. Similar to Margaret becoming Meg, and then Meg becoming Peg.