Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr
Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr

This is reproducibly possible in Python 2.7 if the user turned
PendingDeprecationWarning into an error, but it's theoretically also possible
in earlier versions in case of exceptional conditions.

backpatched to 8.0

greenplum-db/gpdb,Quikling/gpdb,CraigHarris/gpdb,Quikling/gpdb,adam8157/gpdb,ahachete/gpdb,royc1/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,zaksoup/gpdb,edespino/gpdb,lisakowen/gpdb,janebeckman/gpdb,adam8157/gpdb,Chibin/gpdb,Quikling/gpdb,Quikling/gpdb,ahachete/gpdb,Chibin/gpdb,xinzweb/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,chrishajas/gpdb,edespino/gpdb,xinzweb/gpdb,lintzc/gpdb,Chibin/gpdb,yuanzhao/gpdb,rvs/gpdb,janebeckman/gpdb,50wu/gpdb,cjcjameson/gpdb,xinzweb/gpdb,ashwinstar/gpdb,xuegang/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,zaksoup/gpdb,50wu/gpdb,zaksoup/gpdb,Quikling/gpdb,0x0FFF/gpdb,lisakowen/gpdb,Chibin/gpdb,xuegang/gpdb,janebeckman/gpdb,xuegang/gpdb,janebeckman/gpdb,edespino/gpdb,ashwinstar/gpdb,rvs/gpdb,lintzc/gpdb,rvs/gpdb,xuegang/gpdb,royc1/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,rvs/gpdb,royc1/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,ahachete/gpdb,CraigHarris/gpdb,edespino/gpdb,yuanzhao/gpdb,janebeckman/gpdb,ashwinstar/gpdb,xinzweb/gpdb,jmcatamney/gpdb,xuegang/gpdb,lisakowen/gpdb,kaknikhil/gpdb,chrishajas/gpdb,xuegang/gpdb,yuanzhao/gpdb,50wu/gpdb,cjcjameson/gpdb,lintzc/gpdb,rvs/gpdb,Chibin/gpdb,adam8157/gpdb,lisakowen/gpdb,chrishajas/gpdb,lisakowen/gpdb,Quikling/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,adam8157/gpdb,yuanzhao/gpdb,Quikling/gpdb,greenplum-db/gpdb,xinzweb/gpdb,jmcatamney/gpdb,Quikling/gpdb,50wu/gpdb,CraigHarris/gpdb,royc1/gpdb,janebeckman/gpdb,royc1/gpdb,kaknikhil/gpdb,xuegang/gpdb,royc1/gpdb,xinzweb/gpdb,cjcjameson/gpdb,royc1/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,lintzc/gpdb,rvs/gpdb,0x0FFF/gpdb,lisakowen/gpdb,CraigHarris/gpdb,edespino/gpdb,ahachete/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,Quikling/gpdb,Chibin/gpdb,kaknikhil/gpdb,zaksoup/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,zaksoup/gpdb,ahachete/gpdb,50wu/gpdb,lintzc/gpdb,Chibin/gpdb,rvs/gpdb,Quikling/gpdb,xuegang/gpdb,50wu/gpdb,edespino/gpdb,jmcatamney/gpdb,lisakowen/gpdb,cjcjameson/gpdb,Chibin/gpdb,xinzweb/gpdb,adam8157/gpdb,royc1/gpdb,ashwinstar/gpdb,zaksoup/gpdb,CraigHarris/gpdb,janebeckman/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,Chibin/gpdb,adam8157/gpdb,adam8157/gpdb,zaksoup/gpdb,Chibin/gpdb,yuanzhao/gpdb,50wu/gpdb,ahachete/gpdb,lintzc/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,chrishajas/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,rvs/gpdb,0x0FFF/gpdb,0x0FFF/gpdb,kaknikhil/gpdb,chrishajas/gpdb,0x0FFF/gpdb,xinzweb/gpdb,chrishajas/gpdb,50wu/gpdb,ashwinstar/gpdb,edespino/gpdb,ashwinstar/gpdb,zaksoup/gpdb,yuanzhao/gpdb,chrishajas/gpdb,lintzc/gpdb,lisakowen/gpdb,cjcjameson/gpdb,janebeckman/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,lintzc/gpdb,edespino/gpdb,chrishajas/gpdb,greenplum-db/gpdb,ahachete/gpdb,edespino/gpdb,lintzc/gpdb,ahachete/gpdb,kaknikhil/gpdb,janebeckman/gpdb,cjcjameson/gpdb,rvs/gpdb,adam8157/gpdb,xuegang/gpdb,edespino/gpdb,janebeckman/gpdb,rvs/gpdb,0x0FFF/gpdb