Fix crash when health and mana can't be calculated.