More tweaks for --print-exports.
Properly test for lack of attribute, not just falsy.