In symbolic dynamics people use similar metrics for spaces of sequences and the motivation for the formulas is always the following: "the longer central block on which two sequences coincide, the closer they are to each other". I think in your undefined case sequences $x$ and $y$ "coincide on block of zero length", so it's tempting to say that you assign distance $d(x, y) = 2^{-0} = 1$ to them (while it's tempting, it's not so true to do it this way, see an addition).
ADDED LATER:
There's a presentation by Schlomo Sternberg, take a look at slide 7. He defines the distance between sequences exactly the same way as in your question. He also notes that convention $\lbrack x_k , x_l \rbrack$ denotes an empty block if $k > l$. Of course, any $\lbrack x_{-i}, x_{+i} \rbrack$ with $i > 0$ denotes an empty block, the "minimal" empty block (in terms of maximal $i$) is $\lbrack x_{1}, x_{-1} \rbrack$. So, the Cristian Blatter's suggestion for $d(x, y) =2 $ when $x \neq y$ seems to be most reasonable.