fixes #1667 auto sets 'invideo' flag for exam with <video> xml

same as to master