PJSIP: Ensure test event has new state

The change that fixed the pubsub test event's use of a dangling pointer
also changed when it was processed relative to the pjsip subscription
state change processing. This change corrects the order of events while
holding a reference to the pointer that was previously dangling.


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