Fixed a startup crash for users updating from db version 12 to 14.