Mediabox was not reinitialized without gallery images (#886)