modules/presence: fix crash in main/attendant process when using presence module in library mode