fixup enum cast error reporting

Only do this when the value is that triggered the fault is nonempty,
otherwise you get a fault even when the attribute does not appear
in the user generated config -- in that case should silently take
the default.

fixes up 986a87228786f7034b999b06fafb46d6700d3848