You need to verify that all required objects have been successfully added to the SharePoint 2013 farm before upgrading the content database