Despite not having a residence, and having been barred entrance to homeless shelters because of his sex offender status, the court ruled that he could be held criminally liable for not telling police where he was living.
These laws are working exactly as they are intended to work, to make it extremely difficult, if not impossible, for registered sex offenders to exist without violating laws to which no one else is subjected. Thus, they exist as both a means of harassment and as a pretext for further incarceration.
The term for such laws is "Status Offenses" i.e. an action that is prohibited only to a certain class of people, such as Jews in Nazi occupied countries in the last century.