In my custom layout xml, I had a uiComponent that was not yet defined. File:
MyCompany/MyModule/view/adminhtml/layout/mycompany_mymodule_index_index.xml
Defining this UI component (or removing that uiComponent node in my layout xml) solved the problem for me.