Fixes assigning file type for D6 migration

see http://drupal.org/node/2204947  and related patches