Fixed assertion when displaying the rendering layer before a frame is available.