Fix bug with reversing a FunctionEnd event that is immediately preceded by a
FunctionEnd event.