Issue #2213593 by mrfelton: Notice: Undefined index: view_mode line 779 of panopoly_magic when adding existing content  through IPE.