MDL-25944 fix broken images in forum emails and fix invalid $group variable name