#Issue #8621 by turegjorup: Corrected serialisation of media objects