Fix comparison of null DisplayModes.

This fixes a bug where comparing with one or more null DisplayModes would cause a NullReferenceException.

This also allows us to do deliberate null checks like `if (myMode == null)`.