JBIDE-12690 No JAX-RS problems when importing a project that contains errors

Preventing some NPE
Taking care of having the metamodel build command inserted *before* the validation command
Keeping the validation context in the JAX-RS Metamodel (via the ValidationContextTree) to hold
the context between validation calls.