fix Issue 11919 - GitHub HEAD regression for getAttributes trait (DMD CORE DUMP)

fix insufficient error propagation in TupleExp::semantic to resolve ICE.
fix Issue 9741 - undefined identifier with User Defined Attribute

Also fixes incorrect 'undefined identifier' error in `fail_compilation/ice11919.d`.
Merge pull request #3090 from 9rnsr/fix11919

[REG2.066a] Issue 11919 - GitHub HEAD regression for getAttributes trait (DMD CORE DUMP)