Added some code to make sure entities don't have 0 mass.

Dividing by zero is a baaaaaaad idea.  And having negative masses that
are very close to zero makes some weird exponential things go weird.