It looks like LayoutTestHelper is crashing on some of the bots because ColorSyncDeviceCopyDeviceInfo returns null. It looks like this is probably due to them not having a display. We should check for this case and not do anything to the main display color profile, since I don't see how we can! I'm not sure what will happen to the colorspace of pixel results in that situation, but fixing this can't make it *worse*.
<rdar://problem/11162954>
Created attachment 135183 [details] patch
Landed in http://trac.webkit.org/changeset/112943