Added null pointer check for ServiceDomains within an SDP.