NXP-12398 fix wrong trace mode guard