Check and clean missing features / objects from the content database
Run command - test-spcontentdabase , this will provide list of issues. Use this command before migration. Use http://featureadmin.codeplex.com/ tool useful for removing missing Features and cleaning up the environment.