fix bug: NPE if call to log when plugin not initialized yet