Trains are no longer affected by an earlier failure of the electricity supply between London St Pancras International and St Albans.