Phantom minimal series and the Peter--Weyl theorem for loop groups