Issue #2297989 by fgm: prevent deletion of Commerce Types with existing content

And there's that pythoning double-newline again :)