Fix static analysis undefined operation
Fix static analysis undefined operation

Making the condition const simplifies the static analysis and
resolves the issue

Change-Id: Ie247acc0c6a4f842db16b34c8af48e04b81e74d3

GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom