SONARJAVA-448 Fix NPE during construction of AST for annotations