power: optimize a bit

This would spare a local and a global function call if the layout does not use power.displayAltPower. Otherwise the call of `UnitPowerType` is useless as `UnitPower(unit, nil)` and `UnitPowerMax(unit, nil)` will both return values for primary power.