Arsenal boss Arsene Wenger says he would have taken Wojciech Szczesny off if his medical staff had advised him to do so at Manchester United.