Fix for "History retrieval failed" problem

The "sql_log" key is hardcoded few times in the plugin but having

$panel = 'SqlLog';

this

$this->panels[strtolower($panel)] = $panelObj; 

produces "sqllog" (without underscore). My small input fixes this problem.

-------------------

Additionally, CSS and JavaScript panels come sometimes empty from cache so I've added a small check.