Fix crash with sceneless renderpath. Closes #482.