Fix for autoclose parameter

Fixed problems with autoclose parameter.
Now all animation modes do not close the VFB on last frame.

Modes tested:
Animation still motion blur - ok
Animation frame by frame - ok
Animation all but meshes - ok
Animation full - ok

Single frame still motion blur - ok
Single frame - ok