ofxXMPP: check that there's a ctx created before trying to call it