Prosody error when included presence_identity as a module

Our server was working fine until we decided to enable presence_identity recently to provide more user context.

Our prosody log have these errors.

Dec 15 08:17:39 mod_bosh  error Traceback[bosh]: /usr/lib/prosody/util/stanza.lua:225: attempt to index local 'child' (a number value)
  31 stack traceback:
  30   /usr/lib/prosody/util/stanza.lua:225: in function 'self'
  29   /usr/lib/prosody/util/stanza.lua:226: in function 'self'
  28   /usr/lib/prosody/util/stanza.lua:226: in function 'self'
  27   /usr/lib/prosody/util/stanza.lua:226: in function '_dostring'
  26   /usr/lib/prosody/util/stanza.lua:236: in function </usr/lib/prosody/util/stanza.lua:234>
  25   [C]: in function 'tostring'
  24   /usr/share/jitsi-meet/prosody-plugins/util.lib.lua:174: in function 'update_presence_identity'
  23   ...jitsi-meet/prosody-plugins/mod_presence_identity.lua:11: in function '?'
  22   /usr/lib/prosody/util/events.lua:78: in function </usr/lib/prosody/util/events.lua:74>
  21   (tail call): ?
  20   /usr/lib/prosody/core/stanza_router.lua:183: in function 'core_post_stanza'
  19   /usr/lib/prosody/core/stanza_router.lua:135: in function 'dispatch_stanza'
  18   /usr/lib/prosody/modules/mod_bosh.lua:290: in function 'func'
  17   /usr/lib/prosody/util/async.lua:88: in function </usr/lib/prosody/util/async.lua:86>
  16 stack traceback:
  15   (tail call): ?
  14   /usr/lib/prosody/util/async.lua:149: in function 'run'
  13   /usr/lib/prosody/modules/mod_bosh.lua:404: in function 'cb_handlestanza'
  12   /usr/lib/prosody/util/xmppstream.lua:184: in function </usr/lib/prosody/util/xmppstream.lua:164>
  11   [C]: in function 'parse'
  10   /usr/lib/prosody/util/xmppstream.lua:271: in function 'feed'
   9   /usr/lib/prosody/modules/mod_bosh.lua:144: in function '?'
   8   /usr/lib/prosody/util/events.lua:78: in function </usr/lib/prosody/util/events.lua:74>
   7   (tail call): ?
   6   /usr/lib/prosody/net/http/server.lua:223: in function </usr/lib/prosody/net/http/server.lua:165>
   5   ...
   4   /usr/lib/prosody/net/http/server.lua:109: in function 'process_next'
   3   /usr/lib/prosody/net/http/server.lua:125: in function 'success_cb'
   2   /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
   1   /usr/lib/prosody/net/http/server.lua:151: in function </usr/lib/prosody/net/http/server.lua:150>
71     (tail call): ?
   1   /usr/lib/prosody/net/server_select.lua:919: in function </usr/lib/prosody/net/server_select.lua:894>
   2   [C]: in function 'xpcall'
   3   /usr/bin/prosody:387: in function 'loop'
   4   /usr/bin/prosody:418: in main chunk
   5   [C]: ?

Not sure if any one has the same problem. Let me know if you guys have a clue.

What version of prosody is this? And do you have the stanza that is being processed?

Just realized my version is age-old 1.0.4101-1.
First thing would be upgrade to the latest version, but was there breaking changes notes from version 1 to 2?
As for stanza, I am not really sure about that