Fix for error cause by undefind salesorderitem.