Looks like we should add an ``else`` clause here. If where is undefined, we should make sure it is set to the empty string before feeding it into the template. I'm afraid that it may be converted to the string ``'undefined'`` when fed into the template, but I don't know for sure.