Retrieve fig caption by its tag name instead of classname (which is not required).

Change-Id: I9df87bbad1be9a8f89f77bb22e1e03aa425ea8fb
Merge "Retrieve fig caption by its tag name instead of classname (which is not required)."