Make XML-RPC code compatible with Erlang < R16B

This fixes `ejabberd_xmlrpc` on Erlang R15B.