Allow setParent() to accept null - this allows the root category to be set, since it has no parent.