Joao Pedro narrowly avoided a red card after attempting to elbow Yehor Yarmoliuk in the face during Brighton's goalless draw against Brentford.