fixed issue with unknown materials creating broken json