mediawiki.jqueryMsg: Support {{GENDER:}} with empty first parameter

(That is, gender for the user viewing the page.)

This is a bit hacky – it would be cleaner to allow empty parameters
instead of creating a separate construction for first-parameter-less
brace expansion – but this one works and the cleaner one was throwing
exceptions all over when I tried to do that.

Bug: 61320

Conflicts:
	resources/mediawiki/mediawiki.jqueryMsg.js

Change-Id: I0f273951b2f8cebd50dffc6ef23520bb6fa72ccf