Fix 'Undefined Index' error when getting image caption
Merge branch 'SamFleming-fix-get-image-caption'