Fixed underflow bug when checking max buffer.

When running tests I found that "last_commit" could become larger than "added_edges", thus causing an underflow and meaning that the result of the subtraction would always be larger than "1.2 * max_edge_buffer".

I added in the simple inequality check, but I'm not sure if this is a symptom of a deeper problem.