Distortion of charmonium formation amplitude by deconfined environment