Add check for empty summary

Change-Id: I3f53cf1082fe5746f6aec437a2ef50cb71a5f9c6