JBIDE-18491 JBTValidationException while moving CDI beans into another package

IAnnotationDeclaration.getType() may return null. Check is required.
In this issue, previous model state is validated and gets obsolete
when classes are moved. After CDI model rebuild, validation will be
restarted.

Test is added.