Fix invalid inverted boolean check. am: 9d4fb714d8 am: a83ac92706
am: 319ca4b75b

Change-Id: Ic1e3ebc1d9018de6fa6d4da5fdbf19b0ab772f5f