Fixed the rotation center for the ViewportCapture
Fixed stack overflow, when trying to add an empty viewport