Fix for MONDRIAN-1499. If no alias are present, substitute the name of the table.