Brighton forward Joao Pedro avoided a red card despite appearing to attempt to elbow Brentford's Yegor Yarmolyuk in the head.