Return nil instead of raising in X11Dependency#<=>

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