JBIDE-15839 - Exception while saving Provider in JAX-RS application

Fixed the problem which occurred only when the problem severity as set to
'ignore' level. In that particular case, no IMarker would be created, thus
returning a null reference, which lead to NPE.

Added a JUnit test to cover that.