Personally, I just think it's a(nother) plot hole, since there really is no way that he would have known that hers was a doe before she died... Since he was not aware of the Marauders being animagi prior to book 3, and Lily stopped talking to him before she fell for James (and so before her patronus would change into a doe). Soooo...yeah. =/