Fix force-required ui
Fixes a crash that occurs when loading an attribute resource that includes items with the forceRequired
flag set. Because this is the second time this problem has surfaced, a test is added to detect/prevent future occurrences.