Fix regression in 83a39e0a - script's context menu
Check for errors in clip.GetFrame
Reset autocrop values on sample size change