Back-end support for themes when [[mw:Extension:Theme]] isn't available.

Change-Id: I51d5f331bc47827146dbe1310215d64da994c8ab