test #162: Add override for getPort to make sure it correctly detects secure connections in all Joomla configurations