Fixed an undefined error being thrown when saving content without uploading a new image.