That sounds right. You only use the sword bonus for defense when guarding melee attacks.
Not sure if this qualifies as a bug, but if your last hit point comes from a gas creature exploding, other creatures nearby him also can die. Would you gain the xp for their deaths?