Fix a panic when a port name in the last-applied-configuration annotation is not a string
