This issue dates back to 2f88011 for PHPC-348.
PHPC-348 Check for errors after calling bson_to_zval()