Fixed CMake issue with FFMPEG videoio configuration
Use FFMPEG capture only if HAVE_FFMPEG flag is defined.
Merge pull request #3277 from a-wi:CMake_FFMPEG_config_v3