Fixed a potential divide-by-zero error, also make sure the EPAmount doesn't go negative due to having negative EP