Iran's top court has overturned the death sentence for rights activist Sharifeh Mohammadi after she was found guilty of belonging to a Kurdish separatist group.