Fixed PHP-896: Check remaining BSON buffer length before reads