Yeah! It ended up being a problem with my data loader.
I did something and now it works, although I’m not sure what I did.
Could a possible problem be that the data loader was returning None for the elements occasionally?