[#6850] Handle simplify of str import_id

- If the import_id is a str instead of a dict, we should go
  ahead and return that string, not None, for indexing.

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>