Former Premier League referee Dermot Gallagher believes the challenge of Lisandro Martinez on Cole Palmer received the appropriate punishment.