Fix a bug in hilbertFunction where it would fail mysteriously in the absence of
a heft vector.  Now it gives an error message.