Fixed theme deletion issues.
1. Fixed problem where WordPictureSound objects were not set to the
default theme when their original theme was deleted from the
ThemeManager and database.
2. Added temporary fix for updating the ThemeId in the Word table
whenever a theme is deleted.  The "On Delete Set Default" constraint in
the database schema is not currently working.