A landlord in Stockton-on-Tees, has been sentenced after illegally uncapping and reconnecting a gas supply.