I just used the markfordelete command and then spawned a new dragon when i got this bug, but I'm not sure if I messed up anything. The markfordelete command was the only thing i could kill it with, besides turning off its AI and turning off collisions so that I could just run over to it and kill it.