SONARJAVA-496 Improve coverage for NPE catch check