Where a person is convicted on indictment of an offence against any enactment and is for that offence liable to be sentenced to imprisonment, but the sentence is not by any enactment either limited to a specified term or expressed to extend to imprisonment for life, the person so convicted shall be liable to imprisonment for not more than two years.