resip/recon: check return value of getenv

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/resiprocate-1.9@11117 ddefafc4-47db-0310-ae44-fa13212b10f2