X11Dependency: return nil instead of raising in #<=>

Returning nil is in the contract of the Comparable module, and a future
version of Ruby will no longer hide this error.
X11Dependency: style