added ability to create invalid moments

Added a way to create invalid moments, which is useful in general, and then used it to fix #716.

I punted on the question of what we should do with invalid moments.