Added more check of errors for virtualitemconfig