Jennifer Aniston had mourned Matthew Perry "for a long time" before his death because of his addiction struggles.