binary bson element assertion fails when the data is not yet written, in this case return 0