Conditions which imply that subrings of semiprimary rings are semiprimary