Don't crash with a NPE when the Java agent isn't loaded (related to #2)