Fix crash encountered by the testsuite.

Running testsuite tests locally produced no errors, but when
run using the continuous integration framework, crashes occurred.

The crashes occurred due to a refcounting error that had been fixed
for a similar situation.



git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/13@420758 f38db490-d61c-443f-a65b-d21fe96a405b