Converts an expression that uses a safe-access operator (?.) to an if expression.