The conclusion is invalid because the slaves’ singing does not imply that they were happy.
According to the story, the slaves were brainwashed by their masters and forces to perform difficult tasks. They were also illiterate.
When the slaves were working, they would occasionally sing. This gave their masters the impression that they were content. This was incorrect because singing in this context does not imply happiness. As a result, their conclusion is invalid.