Fixed error thrown during CoffeeScript compilation when object 'location' is missing during error output