fixed a type error

vendors without contacts - data object would return vendor and a null
contact object, throwing an error in the console