if node doesnt have parent unlink in jruby should return self.

If node doesn't have parent node - simply return self, as would Nokogiri for C would do, because that means that node is already detached.

This commit fixes issue #1112.