A childcare worker accused of the rape of a four-year-old girl has been permitted to leave Australia before standing trial.