Fixed vqa crashes
Merge pull request #6966 from DeadlySurprise/vqa_crash_fix

Fixes #4224