Missing attribute in the __init__

Added missing attr in the initialization of ConsoleWidget (ConsoleWidget.history_index).
Without this initialization if the user press UP/Down keys and the ConsoleWidget._history still empty the ConsoleWidget fail until the user enter some command.