Prevented error when submitting operations before we have a document.