OTAPI_Exec: fix -Wlogical-op

Logical ‘and’ of mutually exclusive tests is always false.
Merge pull request #202 from toxeus/fixLogicalOP

OTAPI_Exec: fix -Wlogical-op