Mode : fixed a bug where path was null for a Mode object returned by EditSession.

a few modes have bad internal paths in ace.js, so i'll send them a PR