Fix segfault while printing value type for an error msg in emitListComprehension
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/27261
Differential Revision: D17740159
Pulled By: Krovatkin
fbshipit-source-id: 90439282aea14d8634eb41ffece5b6320d615fa7