Fixed crash if send_subscribe fails early

In that case presentity is still NULL, check for it
(cherry picked from commit 6e3b16ec6d3fe59b5a1b415b548394be401e69af)