Fix portal level calculation

Corrects the problem where the portal level would indicate L0 if the average resonator level is between 0 and 1.