Fix weight class division by zero

https://github.com/opencart/opencart/commit/5795d70c3f9fb1102c6f827444b0b75781b2ca23