Proper handling of null values in a row