Fixed a division by zero crash when there are no particles