Fixed set property 'type' of undefined in `if` blockstmt

Fixed set property 'type' of undefined in `if` blockstmt

state.forinifchecks may be empty here