[undistRectTS] Fix bug, & don't fail on bad image