Fixed set property 'type' of undefined

state.forinifchecks may be empty here