Fix Issue 10926 - Wrong expression printed when ternary operator used as lvalue

https://d.puremagic.com/issues/show_bug.cgi?id=10926