issue #24607: make sure we hit the proper error message

Currently if you save an item source with no vendor item number, you get an unhelpful plv8 stack trace. This should at least clean up the error message to be the more readable "Vendor Item Number is required."