Updated check that determines if media data is being updated so that it works when raw image data is uploaded as opposed to using a multi-part form.