Guard from exception thrown using p.plugin_log when it is empty.