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.
Merge pull request #1140 from sjcorbett/fix/port-attribute-sensor

Make behaviour of PortAttributeSensorAndConfigKey.convertConfigToSensor backwards compatible