Merge change 4935

* changes:
  Instance_of should return false if reference is NULL.