Better fix for jrburke/r.js#591: introduce nodeIdCompat for more comprehensive fix