HHH-9123: Fixing NPEs in DatabaseMetadata.getTableMetadata and DatabaseMetadata.initSequences if exception is thrown