[MIRROR] Fixes has_trait() handling of non-list args (#6880)
[MIRROR] Fixes has_trait() handling of non-list args (#6880)

* Fixes has_trait() handling of non-list args (#36035)

* Fixes has_trait() handling of non-list args

* Moves islist() check

* Fixes has_trait() handling of non-list args

McBawbaggings/HippieStation,McBawbaggings/HippieStation,GuyonBroadway/HippieStation,Memendia/HippieStation,GuyonBroadway/HippieStation,Memendia/HippieStation,Memendia/HippieStation,McBawbaggings/HippieStation,Memendia/HippieStation,McBawbaggings/HippieStation,Memendia/HippieStation,GuyonBroadway/HippieStation,GuyonBroadway/HippieStation,McBawbaggings/HippieStation,GuyonBroadway/HippieStation,GuyonBroadway/HippieStation,Memendia/HippieStation,GuyonBroadway/HippieStation,GuyonBroadway/HippieStation,McBawbaggings/HippieStation,McBawbaggings/HippieStation,Memendia/HippieStation,Memendia/HippieStation,McBawbaggings/HippieStation