Liverpool midfielder Georginio Wijnaldum says he would not hesitate to leave the pitch if racially abused during a game.