Special handling for NPE exception: https://issues.apache.org/jira/browse/FELIX-4192