It's because when Ema went past Gunslinger, she had 0 HP and when you took control of her, she had a heart attack and died XD
Jokes aside, just make sure she isn't dead before the gunslinger encounter and you'll be good to go.