Fix debugger history outside of IPython.
Fix debugger history outside of IPython.

This fixes the debugger when ran outside of IPython context as
self.shell.debugger_history is not set.

ipython/ipython,ipython/ipython