Fix accidentally reverted sense of check

Change-Id: I1098c0103d095bc3ee251dbf03bc8b42f08f259f