Fixed bug in getDir method.
Fixed bug in getDir method.

getDir could take two arguments: offset and nodir. If the offset was zero, it would return nodir. However, nodir was sometimes undefined as it was not provided. I added a check to make sure if nodir was undefined, it would be set to Dir_None before calculating the direction.


Former-commit-id: c51ca166f9d38da138b5c1ccc4d1e8ba71039651
webgme/webgme-engine,webgme/webgme-engine,webgme/webgme-engine