Means preventing setting of a dose beyond the amount remaining in the cartridge