OTAPI_Exec: fix -Wlogical-op

Logical ‘and’ of mutually exclusive tests is always false.