fix(driver-compat) fixed FindBugs warning in BasicBSONEncoder