Check for NULL pointers.  Fixes #178
Merge pull request #177 from olivierbeytrison/master

fix debian build system
Use dict_valnamebyattr to get Post-Proxy-Type value