Add support for zero percentage

Don't divide by zero