Fixed issue #9185: End page doesn't display correctly if it contains only an image and no text