My mother did it (sadly, she's no longer with us), and I frequently hear other people say it, I always retort with "oh, you mean Emma", or correct the sentence replacing "it" with her or him.
I mean, why go to the trouble of finding out the sex of a baby, then refer to him/her as "it"!