Remove semicolon at the end of IF statement

(cherry picked from commit 4299ba80beead51ff23bad24df3d26301ac52cb7)