Fix/jury stack overflow

Fixes the Stack Overflow Exception on approving the jury. This closes the tickets 416934 and 417247.
Also fixes the thesis mails.