FC Barcelona forward Lionel Messi was lucky to escape with a yellow card after appearing to lash out at Roma defender Mapou Yanga-Mbiwa in a pre-season friendly.