Fix NPE when workflow has been created with a heap composition built on the fly via XML config.