Don't crash if netmask is not configured correctly

Ticket: #4265

Conflicts:
	gui/jails/utils.py