Fix NPE when executing a DatabaseMetaData method that returns the empty set (e.g. getPrimaryKeys).