getLocationSelectAJAX: forbid setting a location's parent to itself or one of its children