warn on NULL pointer passed to free_jvmti_refs()
add missing calls to free_jvmti_refs()
init pointers to NULL if assigned by jvmti (for safety)