fixed bug that messed up XML on save if media file wasn't found