Does this crash when dataset is `None`? Have you tried creating a related item with no dataset? (This can only be done via the related_create api, there should be a test for it but I'm not sure if there are)