The line "Your wish is granted" Is completely untrue. Her wish was for the girl to get better and never once mentioned her dying. I know that it's trying to do that annoying thing that stories do where the magical being will always find loopholes in someones wish. But it really doesn't work here.