undefined index when product image gallery side meta box is removed fixe...

...s 6855