Fix an error that occurs on a few systems when adding a domain.

git-svn-id: http://fusionpbx.googlecode.com/svn/trunk@4672 e2954ef0-caed-11de-bd98-e341d93cc3cc