XWIKI-9874: Remove all the TODOS in the Wiki Module and introduce getLastError() in the script services of that module.

* Maintain a deprecated function (just one line of code).