Fixing missing check for invalid import value type.