Fix issue when inputTokenizer is empty