Add null check for outliningManager

There are some views that do not support outlining, and so the
outliningManager injected into RelativeNumber will be null.  An instance
of where this fails (with a NullReferenceException) is trying to do a
diff on a change in git.