A woman charged with willingly entering Syria to be with her IS fighter husband has avoided jail time.