Projective systems and bounds on the length of codes of non-zero defect