Issue with last activity.
If the offline contact is an account configured within the same Gajim instance it'll cause Gajim to send the iq request to the Gajim set resource of the other account (offline) which obviously will end into the server throwing a resource or service unavailable exception.
Gajim should always send the request to a bare jid if no online resources are available.