Added null assertion to scene export.