Fix bug in getTablePriveleges with empty schemaPattern