Fix join warning by converting undefs to empty strings