A man who is hungry is incapable of stealing bread. Theft is a sin of desire. The bread does not belong to the baker, the sunlight and soil, and the water that nourished the wheat belong to God alone. If the baker is not hungry then he does not need the bread. But the hungry man takes to fulfill need. The bread is not stolen, but provided by God, to fufill our needs. Their is no sin where there is need fulfilled. It is only poverty of faith that brought him to his hunger. And poverty of faith is not a sin, but a most high blessing.
Do not try to use this defense in court, especially in America; You will lose your case.