JBIDE-15067 - BadLocation Exception when validating a project with JAX-RS support

Couldn't reproduce the issue, but meanwhile, added a JUnit test to cover the block of code
where the issue appeared initially.