Can you explain further about

/help $urlget
Quote
If the call fails, for any reason, it returns an id of zero.

The script was relying on (id > 0) == success, yet it knew there was a failure because $urlget().state was returning 'fail'. Is it intended that some fails make id=0 and others don't?