The actor donned his Jack Sparrow costume to surprise children at London's Great Ormond Street Hospital, where his daughter was treated for kidney failure last year