A woman accused of helping her husband keep a vulnerable woman as a slave has no case to answer, a judge has ruled.