Added proper testing of the end of quicktime video files.

CvCaptureFile::grabFrame() always returns 1 regardless, which causes
dead loop when relying on the return value of VideoCapture::read().
Removed trailing whitespace in cap_qtkit.mm.
Merge pull request #1761 from bhuroc:qtkit-video-file-2.4