The use of AutoCreateRefTerm will dynamically change the return type of this function. However, it appears that we lose this type information after node expansion. If you view enable developer artifacts, you can see that the return type of the GetContext node is actually incorrect. However, it is correct in the original graph. It seems like something bad happens when we duplicate the graph.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-180164 in the post.