Add document.pending? check

Check to make sure the document isn't pending before submitting
additional jobs on it.  Hopefully will prevent note trampling.