Added defense code to CompareTo if Value or other is null.

Added some defense code to CompareTo, if the Value or other is null, this method will throw ArgumentNullException.