Fixed error with null gallery/obj in img migrator