Watcher throws an unhandled exception on deleting

On deleting a directory in windows, watcher throws an unhandled
exception. This change prevents Object.keys being called with undefined.