Fixes 'not in' operator usage

Fixes bug #1110058

Change-Id: I45c10097abfb929918925e7befb8ed6c36b1de1c