Not suggesting this was the case, but an aircraft can have multiple valid AWCs. The only one listed in the registry would be the one issued first. So if this particular aircraft had an "Experimental" AWC, in addition to a "Restricted" one, then this flight could have been legal with pax as a sales demo.
Not a good day all around.
W1