IDE-1291: fixing a possible NPE in case the core context for a java content assist computation is not there