Fix bug when checking for ownership

The region checked if its owner was null, which is deprecated. The
new behavior is to check if its owner is "unknown". This has been
introduced to reduce the risk of NullReferenceExceptions.
Fix bug regarding checks for null

Two checks for null have been performed using .Equals (null) which
turns out to be simply wrong. Those checks have been changed to do
== null instead.