Pass the style attribute to empty image gallery table cells (see #5485)