[xtend][contentAssist] Fixed exception on CA

Also removed unnecessarily duplicated code.

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=450911

Change-Id: Ia15598ad78de93b90e91576e69606dde602a1632