Fixed a logic bug where summary was empty

Fixed a logic bug where extracted summary was effectively empty and it
kept creating new tickets over and over again.