MDL-30431 mod_wiki: made wiki comment manipulation throw errors if something is wrong