Fixes issue #8837

Adds check that set's default profession to generic if it doesn't get
set.