Fix typo in CanTrade.
Introduced in r27722.
Reported by @gameboy at https://wildfiregames.com/forum/topic/107586-an-error-occurred/?do=findComment&comment=553753.
Also adds a small test.
Differential revision: https://code.wildfiregames.com/D5060
Reviewed by: @wraitii