hotfix cast empty value as zero
I don't know if i should merge this. Is only the symptom fix not the problem. Why did we get a empty value here. The attribute itself should greate this data and so we have a problem in the widgetToValue or in the loadData function. Did you have any information about this, where the empty value comes from?
If this is a problem with older database version of the attribute, we should add a update handler. If we get all the time empty values, there must be another problem. If we get this error only on some special events, we should handle it and fix it.
We should talk about this tomorrow.