Was Christ tempted by his own thoughts and desires? Was it internal? No.
Of course, any doubt a faithful Catholic might have has devil at its source; true for me, true for you and true for Mary. There is no sin in that.
And of course, the Pope did not say that Mary actually doubted, only that under the circumstance any human would.