Fixed a bug where trying to remove all stereotypes would leave garbage data in the database. closes #17