Fixed undefined variable on navigator view.
Changed to use gulp-if on gulpfile.