I've never had a problem receiving the sword from Emma. I do think it helps to have a diplomatic character talk to her. Any class will do, it doesn't have to be a paladin.
As for her being hostile, it's possible you hit her inadvertantly during the big fight when you first enter that section. NPC's turn hostile if they take any damage from you, even by mistake.
Nightowl2
|