Checks if the attribute 'code' exists, if not, consider 0 as default value. To make it compatible with servers that don't return this attribute.