Improved detection of duplicate Commits

If a Commit is saved and results in the creation of a new Document,
then the detection of a duplicate Commit within the stream is not
guaranteed.

If we exceeded the size of a single document then a query is issued to
check if a Commit with the same Id exists within the stream.