fix validation of last BSON byte