fix crash: don't access null action

In particular, don't crash when pressing Enter and lacking qxmpp support.