fixed passing NULL as a join value was converted to empty string