The provisions of any ordinance enacted by any municipality or unit of local government which imposes a fine upon cannabis other than as defined in this Act are not invalidated or affected by this Act.