Fix #2398: "Undefined variable: results" E_NOTICE at CProfileLogRoute

Fix #2398: "Undefined variable: results" E_NOTICE at CProfileLogRoute