TEIID-2718: Fixed the error message when non-existent VDB is queried. Co...

...rrected NPE, by correcting access to table that has unique key but does not have PK.