A sex offender has been jailed after he travelled to Indonesia without telling the authorities.