Check mode parameter first in register.cgi

The new Null authentication source needs to be considered only if no
'mode' parameter is specified.

Conflicts:
	html/captive-portal/register.cgi