Fix Table Caption infinite recursion.

Fixed #3997.