[Runtime] do comparison not asignment in if statement

Subtle typo fix.
Merge pull request #2098 from poussa/fix-1

[Runtime] do comparison not asignment in if statement