Get Tracer working after ipapi.get replaced with get_ipython

Commit 790f731 replaced `ipapi.get` with a `get_ipython` function,
that changed the API slightly, returning None when no InteractiveShell
instance has been registered.