Fixed bug where Teradata result tables with null values would be misformatted