(bug 16066) Inline history goes into endless loop and runs out of memory

When the inline history tries to display the history and notes together and the
last note is younger then all history items the next_entry function
will go into an endless loop crashing the server