Fixed possible divide by zero exception in getHealthPercent