Fix onComplete in console

Right now the example in RTFM (http://rtfm.modx.com/display/revolution20/MODx.Console) does not work. Firing the 'complete' event on the JS Console object will just return a JS error when provider is not set.