Jarrod Bowen scored a controversial stoppage-time penalty for the Hammers.