Avoid bogus error message "No type found." and for valid cases also print the symbol which is missing type information.