Added nil check to summarizer