Sex offender jailed for breaching court order in bus station