Fix NPE in test run if a test does not log and Log.LOG_KEY is not
created.