only try to get the parent and base id if the they are not None