Issue #2297989 by fgm: prevent deletion of Order Types with exising Orders

PR is just FYI at this point : I'll be adding protection to Product Types, and probably refactor after that.