Avoid empty localnets[0] field on error