Fix assertion when drawing boxes on non render targets.

This doesn't fix material preview in editor mode yet but at least there's no more assertion. We should probably create a proper render target surface for that.