bug #2099: Move XML-RPC initialization after MADS are loaded. It prevents load failures, by Simon Boulet

(cherry picked from commit 0b8325da7ca73da2f553175f04ed86e08326d3f9)