fix identical ternary branches

I believe the intent is to return a quoted version of the variable if the variable is not defined.  This is the case in some of the other similar statements in this file.