mediawiki-base/Dockerfile: Fix PHP_VERSION in single-version-base
Move ARG PHP_VERSION below FROM multiversion-base AS single-version-base
to ensure that it is processed properly. In the old arrangement,
PHP_VERSION ended up with a blank value even the its value is passed
on the docker build command line.
Add a sanity check to ensure that PHP_VERSION is set when it should
be.