Fix NPE when rendering legacy skins