Fixes NPE when rendering form for an embedded Record in the query debug tool.