When None is returned from a variables function for a path,
we shouldn't generate a path with None in it, but give a LinkError.
Fixes #213.