[patches] firstboot patch fix if statement