Fix cvQueryFrame() NULL-Pointer