This issue started to happen from 2015-06-17 build. I think making  optional for single output created this issue. Before 6/17 build, it used to create a CallGmatFunction command now it creates Assignment command. There is no handle for assigning object to LHS from the FunctionRunner node in the MathTree.
[sc] = MyFunction(sc) does not work.