Keep an invalid document in documents[0]

This will catch code that iterates `documents_array` without checking `is_valid` every time. Otherwise the tester has to close a document before testing the code to create an invalid document.

Any code this breaks was probably broken already.

Note: doing this seems safer and easier than auditing all code using document indexes and removing `is_valid`.