Make behaviour of PortAttributeSensorAndConfigKey.convertConfigToSensor backwards compatible

Falls back to previous behaviour of trying to obtain a port from entities with a single location, even if that location is an instance of MachineProvisioningLocation.