Go To dialog: Slightly improve the precision of the frame number.

The frame number was sometimes off by 1.

This commit fixes #1478.