fix error when editing existing vendor record

Fixes the Variable I is undefined error when editing vendor records with
an address.