Object detection in Context.Current now uses ReferenceEquals.
Fixed exception message.