Fixes bug with getSiblings if node has no parent