Issue #864: Move the markTestSkipped() higher in the function.
Issue #864: Move the markTestSkipped() higher in the function.

Before, there was an error,
As it instantiated AMP_Widget_Media_Gallery if it didn't exist.

ampproject/amp-toolbox-php,ampproject/amp-toolbox-php