Maxwel Cornet's late equaliser for West Ham against Chelsea was contentiously disallowed for a foul on goalkeeper Edouard Mendy.