Convert initial value that comes as int to a list of flag names.

When editing an object the widget works as expected.
Exception occurs when adding a new object.