terminal.js:  Fixed a bug in GateOne.Terminal.newTerminal() where if called without a terminal number the 'click' event would be assigned a broken partially-applied function that had the terminal number set to null.