Avoids writing the state chain information when the chain is empty. So
the 'chain' annotation attribute now has a default value of '{}'.