Fixing 0008 migration to work if electronic resource is not in the db. refs #27.