Well <spoiler>
In the bbsfm secret cutscenes (v2)
You see castle of dreams in the dark realm
So maybe when a world falls to darkness, not everyone becomes a heartless, but rather they may still be alive and trapped in the RoD.
This is assuming that is the castle of dreams in the RoD and it is...