Do you have the 'Run for your Lives' mod which prompts NPC's to head indoors during a dragon attack? I had almost the identical problem in Solitude but when I disabled that mod and reloaded everyone flooded out onto the streets. I'm guessing the mod triggered and then never sent the 'all clear' signal.