adds additional NameError handling for MethodInvocationQuestion