Fix crash when dismissing image in mediaFocusViewController