Why is a TypeError: row is null message raised?

I am getting a TypeError: row is null message when using a Grid. However, this only appears sometimes. I’m also using a binder, so I’m guessing that it’s a binder problem, but is it possible for more information about when and why this error might be raised so that I can have a better understanding of where it’s occurring and how to fix it?

![image]
(https://user-images.githubusercontent.com/11173328/87526687-0da2a600-c683-11ea-8b6c-6d24236a6a31.png)