Fix wrong 'if' condition

Change-Id: I4395b65b226c643f819c8d998907cb3a37a4b676