Just a broad, and possibly sort of unwelcome, commentary on this thread and similar threads...
In all my years playing the game, I've never once used the console to advance a quest. The few times that one has gone buggy, I've just reloaded an earlier save and done it again (after making sure that I was fully patched).
The vast majority of the time that I see someone here who's stuck in a quest and thinks it's a bug - it's not. It's something that was missed, most often a dialogue option that was off-screen. Early on, I got tricked by that a couple of times - you have to be sure to scroll down through all the dialogue options with all the important NPCs in case there's something off-screen that's important.
And at least much of the time that I see someone here who's stuck in a quest and uses the console to advance it, it just makes it worse, since, as the OP's did, the game then gets stuck in a loop trying to do some thing that was supposed to be done before that quest stage.
I know this probably doesn't help the OP that much at this point, and probably won't be read by anyone who's going to end up doing the same thing, but I just had to get it out....