Add missing null check for node while matching delimiter.