Stuck in Dangerous Minds

I also encountered this. There's a bug in the quest where saving and loading in Kellogg's memories breaks the quest script. If you have a saved game (like an auto-save) from before entering the memories, reload it and go through the whole sequence without saving. As Bounce said in his comment, you don't have to watch all of the memories; you can just walk through to the end.

If you have no older saved games, you can try to force the quest to advance using a console command. This one might make it possible to talk to Dr. Amari:

SetStage MQ202 310

And this one should force the quest to complete:

SetStage MQ202 320