You have said correctly
Jesus is acknowledging that what she had said was strictly true but was hiding a fact about her that she expected Jesus to disapprove of. He was saying neither that it was a good thing that she had no husband nor that her answer showed that she was morally good.