[FIX] issue #536

Fix case where fields is null in global and defined in a builder.