Handle missing types after Semantic Analysis

* This prevents NPE in subsequent steps of analysis.

* However there is another and probably better (safer) way to do the
  same - is to assign default value during creation of nodes, so that to
  guarantee that this step won't be skipped. But this improvement can be
  done later.