fix an error in bson_json_reader_read

in the read callback for bson_json_reader_read, if the callback returned
-1, we did some meaningless work and wrote a nullbyte past the beginning
of an array.

Fix that up