(bug 49837) Handle correctly figure tags with typeof="mw:Image"

Change-Id: I6bc74973671e7046130278b9658bb8f6f62904a1
Merge "(bug 49837) Handle correctly figure tags with typeof="mw:Image""