[bug fix] Use instanceof for checking error in utiils.is
v0.24.7