engine: this condition should never happen, but mdgetskinmap() can return null and we weren't checking it