cut if history range asked is bigger than history length...
cut if history range asked is bigger than history length
when calling a magic with a range (eg %save filename 1-500) and an history
smaller than 500
IPython.core.HistoryManager/_get_range_session
would crash