Serialize None properly in callable related_resources